package com.zjw.forum.utils;

import java.util.UUID;

public class UUIDUtil {
    //生成盐
    public static String createSalt(){
        //每一次服务器重启，盐值都会改变
        return UUID.randomUUID().toString().replaceAll("-","");
    }
    public static String createSalt36(){
        //每一次服务器重启，盐值都会改变
        return UUID.randomUUID().toString();
    }
}
